//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在Mechanica.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"sbmc":"","sbbm":"","sbxh":"","sbtp":"","sl":"","sbrkDate":""},
		editFormOptions: [{"key":"enable","data":[],"title":"设备名称","field":"sbmc"},
                               {"key":"enable","data":[],"title":"设备编码","field":"sbbm","disabled":true},
                               {"key":"设备类型2","data":[],"title":"设备型号","field":"sbxh","type":"select"},
                               {"key":"enable","data":[],"title":"设备图片","field":"sbtp"},
                               {"title":"数量","field":"sl","type":"number"},
                               {"title":"设备入库时间","field":"sbrkDate","type":"date"}],
		searchFormFields: {"sbmc":"","sbbm":"","sbxh":"","sbtp":"","sl":"","sbrkDate":""},
		searchFormOptions: [{"title":"数量","field":"sl","type":"number"},{"type":"group"},{"key":"enable","data":[],"title":"设备名称","field":"sbmc","type":"like"},{"key":"enable","data":[],"title":"设备编码","field":"sbbm","type":"like"},{"key":"设备类型2","data":[],"title":"设备型号","field":"sbxh","type":"select"},{"key":"enable","data":[],"title":"设备图片","field":"sbtp","type":"like"},{"title":"设备入库时间","field":"sbrkDate"}],
		columns: [{field:'sbmc',title:'设备名称',type:'string',bind:{ key:'enable',data:[]}},
                       {field:'sbbm',title:'设备编码',type:'string',bind:{ key:'enable',data:[]},readonly:true},
                       {field:'sbxh',title:'设备型号',type:'string',bind:{ key:'设备类型2',data:[]}},
                       {field:'sbtp',title:'设备图片',type:'string',bind:{ key:'enable',data:[]}},
                       {field:'sl',title:'数量',type:'int'},
                       {field:'sbrkDate',title:'设备入库时间',type:'datetime'}],
		table: {
			key: 'id',
			footer: "Foots",
			cnName: '设备基本信息',
			name: 'Mechanica',
			url: "/Mechanica/",
			sortName: "id"
		}
	}
}
